package sk.fhi.client;

import net.customware.gwt.presenter.client.EventBus;
import net.customware.gwt.presenter.client.place.PlaceManager;
import sk.fhi.client.gin.CRUDGinjector;
import sk.fhi.client.presenter.EditContactPresenter;
import sk.fhi.client.presenter.ListContactPresenter;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.ui.RootPanel;


/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class CRUD implements EntryPoint {
	
	private final CRUDGinjector injector = GWT.create(CRUDGinjector.class);

	/**
	 * This is the entry point method.
	 */
	public void onModuleLoad() {
			
		
		final PlaceManager placeManager = injector.getPlaceManager();
        final EventBus eventBus = injector.getEventBus();
		
		EditContactPresenter ePresenter = injector.getEditContactPresenter(); 
		ListContactPresenter listPresenter = injector.getListPresenter(); 
	
		AppController appPresenter = injector.getAppPresenter();
	    

	    appPresenter.go(RootPanel.get());

		
	}
}
